<template>
    <div class="goods-list">
        <h1 class="goods-list-title">{{ data.name }}好物</h1>
        <div class="goods-list-content">
            <GoodsItem v-for="item in data.goodsList" :key="item.id" :itemdata="item" />
            <div class="goods-list-end" @click="">
                <div class="end-name">{{ data.name }}好物</div>
                <img src="@/assets/image/rightbig.png" alt="" class="end-img">
            </div>
        </div>
    </div>
</template>

<script setup lang="ts">
import GoodsItem from './GoodsItem.vue';
defineProps<{
    data: HomeNs.InewCategoryListData
}>()
</script>

<style scoped lang="scss">
.goods-list {
    width: 100%;
    // height: 1000px;
    background: #F5F5F5;
    overflow: hidden;
    margin-top: 6px;

    box-sizing: border-box;

    .goods-list-title {
        font-size: 19px;
        color: #333333;
        text-align: center;
        line-height: 1;
        margin: 20px 0 10px 0;
    }

    .goods-list-content {
        margin: 0 auto;
        width: 3.56rem;
        // height: 1000px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        // background: blue;
        .goods-list-end {
            width: 1.75rem;
            height: 1.75rem;
            background: #fff;
            margin-top: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            .end-name{
                font-size: 16px;
                color: #666666;
            }
            .end-img{
                width: 29px;
                height: 29px;
                margin-top: 10px;
            }
        }
    }
}</style>